Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jquery

Package Overview
Dependencies
Maintainers
4
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery

JavaScript library for DOM operations

  • 3.7.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13M
decreased by-2.23%
Maintainers
4
Weekly downloads
 
Created

What is jquery?

The jQuery npm package is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, and animation much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.

What are jquery's main functionalities?

DOM Traversal and Manipulation

Easily select and manipulate HTML elements. This code changes the text of all paragraph elements to 'Hello World'.

$( 'p' ).text( 'Hello World' );

Event Handling

Quickly handle events like clicks. This code sets up an alert to be displayed when any button is clicked.

$( 'button' ).click( function() { alert( 'Button clicked!' ); } );

Animation

Perform animations on elements. This code makes a div element slide up slowly.

$( 'div' ).slideUp( 'slow' );

AJAX

Facilitate asynchronous HTTP (Ajax) requests. This code fetches the content of test.html and inserts it into the body of the current page.

$.ajax({ url: 'test.html', success: function(data) { $( 'body' ).html( data ); } });

Other packages similar to jquery

Keywords

FAQs

Package last updated on 28 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc